<?php
use Helper\DbConf;

class Bootstrap extends \Yaf\Bootstrap_Abstract {

    public function _initConfig(Yaf\Dispatcher $dispatcher) {
        Yaf\Registry::set("config", Yaf\Application::app()->getConfig());
    }

    public function _initAutoload(Yaf\Dispatcher $dispatcher) {
        require APP_PATH . "/vendor/autoload.php";
    }

    public function _initPlugins(Yaf\Dispatcher $dispatcher) {
        $dispatcher->registerPlugin(new LogPlugin());
    }

    public function _initDatabase(Yaf\Dispatcher $dispatcher) {
        DbConf::i();
    }

}
